package com.xiaoc.bulldozer.common.dto;

import org.apache.commons.lang3.StringUtils;

import com.xiaoc.bulldozer.common.model.AccountBalanceDetail;

/**
 * AccountBalanceDetail Dto
 *
 * @author Danfo Yam
 *
 * @date 2018-08-24 15:47:58
 */
public class AccountBalanceDetailDto extends AccountBalanceDetail {
    
    private static final long serialVersionUID = 1L;

    /**
     * 姓名
     */
    private String name;

    /**
     *昵称
     */
    private String nickName;

    /**
     * 明细类型对应名称
     */
    private String typeName;

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {

        if (StringUtils.isEmpty(nickName)) {
            this.nickName = nickName;
        }else {
            this.nickName = nickName.replaceAll("\\\\", "\\\\\\\\");
        }
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
